//
//  YZClient+Patch.m
//  YZMicroStock
//
//  Created by sum1818 on 16/9/22.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZClient+Patch.h"
#import "YZMPatchManager.h"

@implementation YZNetworkManager (Patch)

- (void) downloadPatch:(NSString *)filename success:(void (^)(NSURLSessionDownloadTask *task,id responseObject))success
               failure: (void (^)(NSError *error))failure;
{
    NSString *filepath = [YZMPatchManager getPatchFileByName:filename];//获取下载路径
    [self.downloadNetwork cq_noCacheDownload:filename filepath:filepath parameters:nil success:success failure:^(NSURLSessionDownloadTask *task, NSError *err) {
        if (failure) {
            failure(err);
        }
    }];
}

@end
